import { get, post } from '@/utils/request'

/**
 * 授权
 */
export default class Auth {
  /**
   * 获取用户已有权限
   */
  static async listByUid(uid) {
    return get('/user-auth/listByUid/' + uid)
  }

  /**
   * 授权
   */
  static async auth(data) {
    return post('/user-auth/auth', data)
  }
}
